package com.hsu.project.provider;

import java.util.concurrent.CompletableFuture;

/**
 * @ClassName: DemoService
 * @author Hsu琛君珩
 * @date 2024-09-02
 * @apiNote
 * @Version: v1.0
 */
public interface DemoService {

    String sayHello(String name);

    String sayHello2(String name);

    default CompletableFuture<String> sayHelloAsync(String name) {
        return CompletableFuture.completedFuture(sayHello(name));
    }
}
